package com.mtbu.dao;
import my.myorm.tool.jdbc.ResultList;
import my.myorm.tool.jdbc.SQLExecutor;
import my.myorm.tool.jdbc.SQLManager;
import my.myorm.tool.orm.TableBeanMap;

import com.mtbu.bean.StatsPlaystart;
import com.mtbu.dao.base.StatsPlaystartDaoBase;
public final class  StatsPlaystartDao extends StatsPlaystartDaoBase{
    public String getSplit(StatsPlaystart statsPlaystart) throws Exception{
        return "";
    }
    
    public StatsPlaystart findStatsPlaystartByACTime(int A,int C,String time) throws Exception{

        StringBuffer sb = new StringBuffer();
    	sb.append("select * from stats_playstart ");
    	sb.append(" where time = '");
    	sb.append(time).append("' ");
    	sb.append(" and A = ").append(A) ;
    	sb.append(" and C = ").append(C) ;
    	String sql = new String(sb);
    //	System.out.println("sql:" + sql);
    	
    	SQLExecutor dbconn = SQLManager.getSQLExecutor();
    	ResultList rs =dbconn.query(sql,false,null);
		
    	for(int i = 0; i < rs.size(); ) {
    		return rs.get(i).get(StatsPlaystart.class); 
    	}
		return null;
    }
}
